<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="cookie.js"></script>
</head>
<body>
<script>
    //得到，读取
    console.log(docCookies.getItem('num'))
    console.log(docCookies.getItem('num2'))

</script>
</body>
</html>